package cn.amaake.magicplugin.rpc.service;

import cn.amaake.magicplugin.rpc.model.RpcProviderInfo;
import org.ssssssss.magicapi.core.service.AbstractPathMagicResourceStorage;

public class RpcProviderInfoMagicResourceStorage extends AbstractPathMagicResourceStorage<RpcProviderInfo> {

    @Override
    public String folder() {
        return "rpcprovider";
    }

    @Override
    public Class<RpcProviderInfo> magicClass() {
        return RpcProviderInfo.class;
    }


    @Override
    public String buildMappingKey(RpcProviderInfo info) {
        return buildMappingKey(info, magicResourceService.getGroupPath(info.getGroupId()));
    }
}
